package com.zwps.common.core.enums;

import com.zwps.common.tool.enums.InterfaceEnum;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 消息类型
 * 
 * @ClassName: MessageTypeEnum
 * @Description:
 * @author lyh
 * @date 2023年10月19日 下午3:15:27
 *
 */
@Getter
@AllArgsConstructor
public enum MessageTypeEnum implements InterfaceEnum<Integer> {
    // service
    SERVICE_CONFIG(2000, "服务配置"),
    // 识别服务
    RECOGNIZE_SONAR_DOLPHIN_RECORD_FILE(3001, "探豚文件解析"),
    RECOGNIZE_HISTORY_VIDEO_IDENTIFY(3002, "AI识鸟历史视频识别结果存储"),

    RECOGNIZE_LISTEN_BIRD_SAMPLE_SYNC(3003, "听音识鸟样本库同步"),
    RECOGNIZE_HISTORY_VIDEO_RECORD(3004, "AI识鸟历史视频文件上传"),
    RECOGNIZE_LISTEN_ALARM_SAMPLE_SYNC(3005, "事件识别库同步"),
    RECOGNIZE_LISTEN_ALARM_VIDEO_SAMPLE_SYNC(3006, "事件视频库同步"),
    RECOGNIZE_LISTEN_ALARM_MESSAGESolve_SAMPLE_SYNC(3007, "事件处理库同步"),
    // 监控
    MONITOR_DEVICE_UPDATE_GB28181(4001, "GB28181设备更新"),
    MONITOR_CHANNEL_UPDATE_GB28181(4002, "GB28181通道更新"),
    MONITOR_PLAYER_START(4003, "监控开始播放"),
    MONITOR_PLAYER_END(4004, "监控停止播放"),
    MONITOR_RECORD_UPLOAD(4005,"视频录制成功"),
    MONITOR_RECORD_ERROR(4006,"视频录制失败"),
    MONITOR_SERVICE_INFO(4007, "监控服务更新"),
    MONITOR_HISTORY_VIDEO_RECOGNIZE_FILE(4008,"历史视频识别结果文件解析"),

    MONITOR_CHANNEL_UPDATERESOLUTION_GB28181(4009, "GB28181通道更新分辨率"),
    // file
    FILE_IMAGE_COMPRESS(5001, "图片压缩"),
    ;

    /**
     * 编码
     */
    private Integer code;

    /**
     * 名称
     */
    private String name;

    @Override
    public String getTypeName() {
        return "日志消息类型";
    }
}